package day8;

public class D8_3 {
    public static void main(String[] args) {
        jichu jichu=new jichu();
        jichu.name="张三";
        jichu.age=20;
        jichu.Learning();
        jiuye jiuye=new jiuye();
        jiuye.name="李四";
        jiuye.age=22;
        jiuye.Learning();
    }
}
class jichu{
    String name;
    int age;
    public void Learning(){
        System.out.println(name+"(基础班学生)，年龄："+age+"正在学JavaSE");
    }
}
class jiuye extends jichu{
    public void Learning(){
        System.out.println(name+"(就业班学生)，年龄："+age+"正在学Android");
    }
}